module ziyi{
    export class pot2 extends basicui{
        private allpot2_g:eui.Group;

        public constructor(cd?: any) {
            super();

            
        }


        private pots2:Array<Array<eui.Image>>;
        //子类初始化操作
        protected pre_init(): void {
            this.pots2=new Array<Array<eui.Image>>();
            for(let i:number=0;i<9;i++){
                
                var tmp:Array<eui.Image>=new Array<eui.Image>();
                this.pots2.push(tmp);
                for(let j:number=0;j<9;j++){
                    var tmpgroup =<eui.Group> this.allpot2_g.getElementAt(i);
                    var tmpimg=<eui.Image>tmpgroup.getElementAt(j);
                    this.pots2[i].push(tmpimg);
                    this.pots2[i][j].visible=true;
                    this.pots2[i][j].touchEnabled=false;
                }
            }
            
        }
        public visibleSet(i:number,j:number):void{
            this.pots2[i][j].visible=true;
        }
        public allVisibleSet():void{
            for(let i:number=0;i<9;i++){
                for(let j:number=0;j<9;j++){
                    this.pots2[i][j].visible=false;
                }
            }
        }
        public getpots2():Array<Array<eui.Image>>{
            return this.pots2;
        }

        public getall():eui.Group{
            return this.allpot2_g;
        }
    }
}